package com.jason.item.dao;

import com.jason.item.dao.entity.ItemStock;
import org.apache.ibatis.annotations.Param;

public interface ItemStockMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ItemStock record);

    int insertSelective(ItemStock record);

    ItemStock selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ItemStock record);

    int updateByPrimaryKey(ItemStock record);

    int updateByItemId(ItemStock record);

    ItemStock selectByItemId(Integer id);

    int decreaseItemStock(@Param("id")Integer id, @Param("amount")Integer amount);

    int deleteByItemId(Integer id);
}